package demo5.dao;

import org.springframework.stereotype.Repository;

@Repository
public class UserDAOImpl implements IUserDAO{
    @Override
    public boolean findUser() {
        System.out.println("UserDAOImpl.findUser...，正在查找用户信息");
        Double r = Math.random();
        if (r > 0.5){
            System.out.println("userDAO:找到该用户");
            return true;//找到该用户
        }else {
            System.out.println("userDAO:未找到该用户");
            return false;
        }
    }
}
